//-----------------------------------------------------------------------
// <copyright file="a_SeasonService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_SeasonService
    {
        #region a_Season

        public static void Createa_Season(a_Season a_Season)
        {            
            try
            {
                a_SeasonDAO a_SeasonDAO = new a_SeasonDAO();
                a_SeasonDAO.Createa_Season(a_Season);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Season(a_Season a_Season)
        {            
            try
            {
                a_SeasonDAO a_SeasonDAO = new a_SeasonDAO();
                a_SeasonDAO.Updatea_Season(a_Season);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Season(int seasonID)
        {            
            try
            {
                a_SeasonDAO a_SeasonDAO = new a_SeasonDAO();
                a_SeasonDAO.Deletea_Season(seasonID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Season Geta_Season(int seasonID)
        {            
            try
            {
                a_SeasonDAO a_SeasonDAO = new a_SeasonDAO();
                return a_SeasonDAO.Geta_Season(seasonID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_SeasonCollection Geta_SeasonList(a_SeasonColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_SeasonDAO a_SeasonDAO = new a_SeasonDAO();
                return a_SeasonDAO.Geta_SeasonList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_SeasonCollection Geta_SeasonList(a_SeasonColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_SeasonDAO a_SeasonDAO = new a_SeasonDAO();
                return a_SeasonDAO.Geta_SeasonList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}